package com.design.strategy;

/**
 * @ClassName Context.java
 * @Description 上下文,封装策略
 * @author Jon
 * @date 2018年6月19日 下午2:00:08
 */
public class Context {
	private Calculator calculator = null;

	public Context(Calculator calculator) {
		this.calculator = calculator;
	}
	
	public int exec(int a, int b) {
		return this.calculator.exec(a, b);
	}
}
